package com.blackbird.jang;

import static com.wiyun.engine.utils.Utilities.randZeroToOne;

public class Utils {

	
	

	// 注：产生随机数的方法有待于改进，搞不好可能一直循环下去，虽然机率较低
	public static int makeRandom(int base) {
		int r;
		do {
			r = (int) (randZeroToOne() * 10);
		} while (r >= base);

		return r;
	}	

	
}
